package com.youway.ddd.demo1.jpa.bookstore.repository;

import com.youway.ddd.base.BaseRepository;
import com.youway.ddd.demo1.jpa.NumericSequenceId;
import com.youway.ddd.demo1.jpa.bookstore.entity.BookEntity2;
import com.youway.ddd.demo1.jpa.bookstore.entity.BookshelfEntity2;
import com.youway.ddd.demo1.jpa.bookstore.entity.BookshelfSpaceEntity2;

//拆分
public interface BookshelfSpaceRepository2 extends BaseRepository<BookshelfSpaceEntity2, NumericSequenceId> {

    BookshelfSpaceEntity2 findByBookshelfAndBook(BookshelfEntity2 bookshelfEntity, BookEntity2 book);
    
}